package com.wuf.mybatis.transaction;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @Author wuf
 * @Description 事务接口
 * @PackageName wuf-mybatis
 * @Package com.wuf.mybatis.transaction
 * @Date 2024/4/25 11:25
 */
public interface Transaction {

    Connection getConnection() throws SQLException;

    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;
}
